package it.must.myspringboot.controller;

import it.must.myspringboot.service.ManService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zj@uinpay.cn
 * @Date 2024/12/6 15:41
 */
@RestController
public class TestController {
    @Autowired
    private ManService manService;

    @GetMapping("/{name}")
    public String get(@PathVariable String name) {
        return manService.getName(name);
    }

    @GetMapping("/catchTest/{name}")
    public String catchTest(@PathVariable String name) {
        return manService.catchTest(name);
    }
}
